package test.test1201;

import java.util.Scanner;

public class test011 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入数组长度(1-5)：");
        int a = sc.nextInt();
        int arr[] = new int[a];
        for (int i = 1; i < a + 1; i++) {
            System.out.println("请输入第" + i + "个元素，共" + a + "个");
            arr[i - 1] = sc.nextInt();
        }
        System.out.println("录入完毕，结果如下：");
        for (int m = 0; m < arr.length; m++) {
            System.out.println(arr[m]);
        }

    }
}
